﻿ <%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true" CodeFile="NhapGVCN.aspx.cs" Inherits="QuanTri_NhapGVCN" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" Runat="Server">
<link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
<div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                   Phân giáo viên chủ nhiệm
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Chọn năm</span>
                    <asp:DropDownList ID="ddlNam" runat="server" Width="250px">
                    </asp:DropDownList>
                 </div>
                 <div class="personal_style_form">
                    <span class="personal_laber">Chọn khối</span>
                    <asp:DropDownList ID="ddlKhoi" runat="server" Width="250px">
                    </asp:DropDownList>&nbsp&nbsp<asp:Label ID="lblMaLop" runat="server"></asp:Label>
                 </div>
                 
                 <div class="personal_style_form">
                    <span class="personal_laber">Chọn giáo viên</span>
                    <asp:DropDownList ID="ddlGV" runat="server" Width="250px">
                    </asp:DropDownList>
                 </div>
                 <div>
                  <div id="personalSubmit" class="personal_submit clearfix" style="margin-left:220px">
                                   <asp:LinkButton ID="lbtLuu" CssClass="Link"  runat="server" 
                    Font-Underline="False" onclick="lbtLuu_Click"> 
                    <img src=../images/save.png style="border:0px;" /><b>&nbsp;Lưu</b></asp:LinkButton>
                    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                   <asp:LinkButton ID="lbtDel" CssClass="Link"  runat="server" 
                    Font-Underline="False" onclick="lbtDel_Click"><img src="../images/delete.png" style="border:0px;" /><b>&nbsp;Xóa</b></asp:LinkButton>&nbsp; &nbsp;&nbsp&nbsp&nbsp;&nbsp&nbsp
                     <asp:LinkButton ID="lbtBack" CssClass="Link"  runat="server" 
                    Font-Underline="False" onclick="lbtBack_Click"><img src="../images/back-icon1.png" style="border:0px;" /></asp:LinkButton>&nbsp; &nbsp;&nbsp&nbsp&nbsp;&nbsp&nbsp
                    <%--<asp:Button ID="btnXem" runat="server" Text="Xem" CssClass="button" 
                          onclick="btnXem_Click" />&nbsp&nbsp&nbsp--%>
                <%--    <asp:Button ID="btnBack" runat="server" Text="Quay lại" CssClass="button" 
                          onclick="btnBack_Click" />&nbsp&nbsp&nbsp--%>
                  </div><br />
                    <asp:GridView ID="grvDSGVCN" runat="server" AutoGenerateColumns="false" Width="100%"
                                AllowPaging="True" Height="28px" ShowFooter="True" 
                         onselectedindexchanged="grvDSGVCN_SelectedIndexChanged">
                                <Columns>
                                    <asp:TemplateField HeaderText="STT">
                                        <ItemTemplate>
                                        <center>
                                            <%# Container.DataItemIndex + 1 %></center>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Năm học">
                                        <ItemTemplate>
                                        <center>
                                        <asp:Label ID="lblMaNam" runat="server" Visible="false" Text='<%#Eval("MaNam") %>'></asp:Label>
                                            <%#Eval("TenNam") %></center>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Giáo viên chủ nhiệm">
                                        <ItemTemplate><center>
                                           <%#Eval("TenCanBo") %></center>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Trạng thái giảng dạy">
                                        <ItemTemplate><center>
                                           <%#Eval("TrangThaiGiangDay")%></center>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Tên lớp">
                                        <ItemTemplate><center>
                                         <asp:Label ID="lblMaLopBan" runat="server" Visible="false" Text='<%#Bind("MaLopBan") %>'></asp:Label>
                                           <%#Eval("TenLop")%></center>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowSelectButton="True" SelectText="Chọn" HeaderText="Chọn" >
                                        <ControlStyle Font-Underline="True" ForeColor="Blue" />
                                    </asp:CommandField>
                                </Columns>
                                <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                                <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                            </asp:GridView>
                     <br />
                 </div>
                 <div>
                 </div>
            </div>
       </div>
 </div>                       
</asp:Content>

